<?php /*a:2:{s:71:"F:\phpstudy_pro\WWW\thinkphp5\application\admin\view\article\index.html";i:1637941169;s:69:"F:\phpstudy_pro\WWW\thinkphp5\application\admin\view\public\bass.html";i:1637940454;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>H+ 后台主题UI框架 - 基础表格</title>
    <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
    <meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">
    
    <link href="/static/admin/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="/static/admin/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="/static/admin/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="/static/admin/css/animate.min.css" rel="stylesheet">
    <link href="/static/admin/css/style.min862f.css?v=4.1.0" rel="stylesheet">
    
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            

<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row" style="margin-bottom: 5px">
        <div class="col-sm-12 text-right">
            <a href="<?php echo url('/admin/art/create'); ?>" class="btn btn-primary ">添加文章</a>
        </div>
    </div>
    <div class="row">
        <div class="col-sm-12">

            <div class="ibox float-e-margins">

                <div class="ibox-content">

                    <table class="table">
                        <thead>
                        <tr>
                            <th>id</th>
                            <th>栏目</th>
                            <th>标题</th>
                            <th>发布时间</th>
                            <th> 选 项</th>
                        </tr>
                        </thead>
                        <tbody>
                        <?php foreach($res as $item): ?>
                        <tr>
                            <td><?php echo htmlentities($item['id']); ?></td>
                            <td><?php echo htmlentities($item->cate['cate_name']); ?></td>
                            <td><?php echo htmlentities($item['title']); ?></td>
                            <td><?php echo htmlentities(date('Y-m-d H:i',!is_numeric($item['create_time'])? strtotime($item['create_time']) : $item['create_time'])); ?></td>
                            <td>
                                <a href="/admin/art/<?php echo htmlentities($item['id']); ?>/edit">修改</a>|
                                <a class="delart" href="/admin/art/<?php echo htmlentities($item['id']); ?>">删除</a>
                            </td>
                        </tr>
                        <?php endforeach; ?>
                        </tbody>
                    </table>

                </div>
                <div class="row">
                    <div class="col-sm-12 text-center">
                        <div class="dataTables_paginate paging_simple_numbers" id="DataTables_Table_0_paginate">
                            <?php echo $res; ?>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

</div>

        </div>
    </div>
</div>
<script src="/static/admin/js/jquery.min.js?v=2.1.4"></script>
<script src="/static/admin/js/bootstrap.min.js?v=3.3.6"></script>
<script src="/static/admin/js/plugins/peity/jquery.peity.min.js"></script>
<script src="/static/admin/js/content.min.js?v=1.0.0"></script>
<script src="/static/admin/js/plugins/iCheck/icheck.min.js"></script>



<script>
    $('.delart').click(function () {
        // var url = $(this).attr('href');
        $.ajax({
            url:'/admin/art/76',
            type:'delete',
            success:function (res) {
                console.log(res);
            }
        });

        return false;
    });
</script>



</body>
</html>
